package gtkwire.widget;

import gtkwire.*;

/**
*Widget with a discrete toggle button.
*/
public class GtkCheckButton extends GtkToggleButton
{
	private String[] createFlag = null;//used to kill supers creating native widgets.

	public GtkCheckButton()
	{
		super();
		widgetType = WT_GtkCheckButton;
		createFlag = new String[0];
		gtkCreate();
	}

	public GtkCheckButton( String name, GladeKey key )
	{
		super( name, key );
		widgetType = WT_GtkCheckButton;
	}
	
	/**
	*Sets whether the button is displayed as a separate indicator and label.
	*/
	public void setDrawIndicator( boolean b )
	{
		app().sendCommand( name, GTKWireCommand.SET_MODE, b );
	}

	protected String[] getCreateData(){ return createFlag; }

}//end class
